#include <iostream>
#include <string>
using namespace std;
#include "TreeManager.h"
TreeManager::TreeManager(const string& path)
{
	if(Load(path) == false)
	{
		exit(-1);
	}
}
bool TreeManager::BuildTree()
{
	cout << "How much nodes do you need in the tree? ";
	unsigned numNodes;
	cin >> numNodes; cin.get();
	string nodeType, nodeValue;
	int numChildren, parentId;
	for (int i = 0; i < numNodes; i++)
	{
		cout << "Enter the type of node you need: ";
		getline(cin, nodeType, '\n');
		cout << "Enter the value of node: ";
		getline(cin, nodeValue, '\n');
		cout << "Enter number of children: ";
		cin >> numChildren; cin.get();

	}
}
void TreeManager::AddNode(const string &strType, const string &strValue, TreeNode* parentLink, unsigned numChildrenLinks)
{
	TreeNode(strType, strValue, parentLink, numChildrenLinks);
}